package com.hk.service;

import com.hk.commons.HqlFilter;
import com.hk.commons.entity.Organization;
import com.hk.commons.entity.UserChannel;
import com.hk.commons.vo.CheckInfo;

import java.util.List;

/**
 *
 * 
 * @author Sam
 * @date 2016年2月17日上午11:04:35
 */
public interface IUserChannel {

	public UserChannel findById(Integer id);

	/**
	 * 保存
	 * 
	 * @param
	 * @return
	 */
	public Boolean add(UserChannel u);

	/**
	 * 更新
	 * 
	 * @param
	 */
	public void update(UserChannel u);


	public Boolean beforeAddCheck(String  name, Integer channelId);

	/** 分页获取 */
	public List<UserChannel> find(int pageNum, int pageSize);

	public List<UserChannel> findByFilter(HqlFilter hqlFilter, int pageNum, int pageSize);

	public List<UserChannel> findByFilter(HqlFilter hqlFilter);

	public Long countByFilter(HqlFilter hqlFilter);

	public Integer getChannelIdByRoleId(Long roleId);

	public UserChannel findByChannelId(Integer channe);

	public String getChannelNameByChannelId(Integer channe);
}
